<template>
  <div>
    {{ message }}
  </div>
</template>
  
<script lang='ts' setup>
import axios from 'axios'

// data
const message = ref<string>('start')

const getList = () => {
  axios.get('/jsonApi/posts').then(res => {
    console.log(res.data)
  })
}
// getList()

const getL1 = () => {
  // axios.get('http://127.0.0.1:8000/getHNull').then(res => {
  axios.get('http://127.0.0.1:8000/getDepartment').then(res => {
    console.log(res.data)
    // message.value = res.data.message
  })
}
// getL1()

</script>
  
<style scoped lang='less'>
  
</style>
